//
//  LGRedPacketCell.m
//  LuxuryGoods
//
//  Created by 刘星辰 on 2018/6/15.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "LGRedPacketCell.h"

@implementation LGRedPacketCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.stateBtn setImage:LGImageFor(@"tab_selected") forState:UIControlStateSelected];
    
    WeakObj(self);
    [self.stateBtn bk_addEventHandler:^(id sender) {

        if (selfWeak.selectAciton)
        {
            selfWeak.selectAciton(selfWeak);
        }
        
    } forControlEvents:UIControlEventTouchUpInside];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    self.stateBtn.selected = selected;
    
}

@end
